﻿<%@ Page Language="C#" ContentType="text/xml" AutoEventWireup="true" CodeBehind="rss.aspx.cs" Inherits="NettutsTutorial2.rss" %>
<asp:Repeater ID="RepeaterRSS" runat="server">
        <HeaderTemplate>
           <rss version="2.0">
                <channel>
                    <title>CS 4790 Blog</title>
                    <link>http://localhost:53445/blogpost</link>
                    <description>
                    Home of the BlogKickstart Project
                    </description>
        </HeaderTemplate>
        <ItemTemplate>
            <item>
                <title><%# RemoveIllegalCharacters(DataBinder.Eval(Container.DataItem, "Title"))%></title>             
                <pubDate><%# String.Format("{0:R}", DataBinder.Eval(Container.DataItem, "Date"))%></pubDate>                
                <description><%# RemoveIllegalCharacters(DataBinder.Eval(Container.DataItem, "MarkedContent"))%></description>
        </item>
        </ItemTemplate>
        <FooterTemplate>
                </channel>
            </rss>
        </FooterTemplate>
</asp:Repeater>
